package com.ruoyi.train.service.impl;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.train.mapper.CertApplicationStudentMapper;
import com.ruoyi.train.domain.CertApplicationStudent;
import com.ruoyi.train.service.ICertApplicationStudentService;

/**
 * 办证申请学员Service业务层处理
 * 
 * @author wusihao
 * @date 2023-04-19
 */
@Service
public class  CertApplicationStudentServiceImpl extends ServiceImpl<CertApplicationStudentMapper, CertApplicationStudent> implements ICertApplicationStudentService
{
    @Autowired
    private CertApplicationStudentMapper certApplicationStudentMapper;

    /**
     * 查询办证申请学员
     * 
     * @param id 办证申请学员主键
     * @return 办证申请学员
     */
    @Override
    public CertApplicationStudent selectCertApplicationStudentById(Long id)
    {
        return certApplicationStudentMapper.selectCertApplicationStudentById(id);
    }

    /**
     * 查询办证申请学员列表
     * 
     * @param certApplicationStudent 办证申请学员
     * @return 办证申请学员
     */
    @Override
    public List<CertApplicationStudent> selectCertApplicationStudentList(CertApplicationStudent certApplicationStudent)
    {
        return certApplicationStudentMapper.selectCertApplicationStudentList(certApplicationStudent);
    }

    /**
     * 新增办证申请学员
     * 
     * @param certApplicationStudent 办证申请学员
     * @return 结果
     */
    @Override
    public int insertCertApplicationStudent(CertApplicationStudent certApplicationStudent)
    {
        return certApplicationStudentMapper.insertCertApplicationStudent(certApplicationStudent);
    }

    /**
     * 修改办证申请学员
     * 
     * @param certApplicationStudent 办证申请学员
     * @return 结果
     */
    @Override
    public int updateCertApplicationStudent(CertApplicationStudent certApplicationStudent)
    {
        return certApplicationStudentMapper.updateCertApplicationStudent(certApplicationStudent);
    }

    /**
     * 批量删除办证申请学员
     * 
     * @param ids 需要删除的办证申请学员主键
     * @return 结果
     */
    @Override
    public int deleteCertApplicationStudentByIds(Long[] ids)
    {
        return certApplicationStudentMapper.deleteCertApplicationStudentByIds(ids);
    }

    /**
     * 删除办证申请学员信息
     * 
     * @param id 办证申请学员主键
     * @return 结果
     */
    @Override
    public int deleteCertApplicationStudentById(Long id)
    {
        return certApplicationStudentMapper.deleteCertApplicationStudentById(id);
    }
}
